import java.util.List;

/**
 * @Author zzz
 * @Date 2022/1/8 9:25
 * @Version 1.0
 */
public class listPrint {
    public static void printList(List<?> list){
        if (list == null||list.size() == 0){
            return;
        }
        System.out.println("\nlist.length() == "+list.size());
        for (int i = 0; i < list.size(); i++) {
            System.out.print(list.get(i)+"\t");
        }
    }
    //print
    public static void printLList(List<List<Integer>> list){
        if (list == null||list.size() == 0){
            return;
        }
        System.out.println("\nlist.length() == "+list.size());
        for (int i = 0; i < list.size(); i++) {
            for (int j = 0; j < list.get(i).size(); j++) {
                System.out.print(list.get(i).get(j)+"\t");
            }
            System.out.println();
        }
    }
}
